package com.mathew.spring.appsp.conf;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

@ControllerAdvice
public class GlobalConfig {
    @ModelAttribute(value = "info")
    public Map<String,String> userInfo() {
        HashMap<String,String> map = new HashMap<>();
        map.put("key1", "value1");
        map.put("ver", "1.0");
        return map;
    }
}
